<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>0.8数组的处理方法</title>
</head>
<script src="./index.js"></script>
<body>
    
</body>
</html>

<script>
    let vm = new Vue({
        data: {
            person1: {
                name: '蒋皓天',
                sex: 'male'
            },
            person2: {
                name: '周钰',
                sex: 'female'            
            },
            appName: '挨批评'
        },
        watch: {
            appName() {
                console.log('触发变化')
            }
        }
    })

    console.log('vm:', vm);
    vm.appName = 'jht'

</script>